package basic50.fiftieth;

import java.util.Scanner;

public class Basic47 {
    public static void main(String[] args) {
        //题目：读取7个数（1—50）的整数值，每读取一个值，程序打印出该值个数的＊。
        Scanner sc = new Scanner(System.in);
        int n =7;
        int[] arr = new int[n];
        for (int i = 0; i < arr.length; i++) {
            int num = sc.nextInt();
            arr[i] = num;
            count(num,arr);
        }
    }

    private static void count(int num, int[] arr) {
        int count = 0;
        for (int j : arr) {
            if (num == j) {
                count++;
            }
        }
        System.out.println(count);
    }
}
